package com.itwanyan.m3u8loaderbypublic.dbdata;


import java.util.List;

/**
 * Created on 2018/4/30 21:26.
 *
 * @author ares
 */

public abstract class AbsDownloadHistoryDBHelper  {


    public AbsDownloadHistoryDBHelper() {
    }
    public abstract List<TsFileLoadRecord> getLoadTsFiles(String videoId);
    public abstract int  getLoadTsFilesCount(String videoId);
    public abstract void saveLoadTsFile(TsFileLoadRecord tsFileLoadRecord);
    public abstract void deleteLoadTsFiles(String videoId);
    public abstract void updateTsFileLoadLenth(String fileName, long length);
    public abstract void updateTsFileLoadState(String fileName, boolean finishState);
    public abstract boolean getTsFileLoadState(String fileName);
    public abstract List<LoadRecordBean> getLoadM3u8Files(String videoId);
    public abstract void saveLoadM3u8File(LoadRecordBean loadRecordBean);
    public abstract void deleteLoadM3u8File(String videoId);
    public abstract void adM3u8FileLoadTsCount(String videoId);
    public abstract long getLoadM3u8FileLenth(String videoId);
    public abstract int getM3u8LoadState(String videoId);
    public abstract void setM3u8FileLength(String videoId, long singleLength);
    public abstract void setM3u8FileBySingleLength(String videoId, long singleLength);
    public abstract void updateM3u8LoadState(String videoId, int finishState);
    public abstract List<LoadRecordBean> getUnFinishLoadM3u8Files();
    //用来更新进度
    public abstract void updateM3u8FileLoadLength(String videoId,long loadLength);
    public abstract List<LoadRecordBean> getFinishedLoadM3u8Files();



}
